from django import template
from citas.models import Cita
register = template.Library()

@register.simple_tag
def cita_aleatoria():
    return unicode(Cita.objects.order_by('?')[0])